using ASP;
using HoWave.Common;
using HoWave.Web;
using HoWave.Web.DataHelper;
using System;
using System.Data;
using System.IO;
using System.Web.Profile;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
public class index : Page, IRequiresSessionState
{
	protected UserControls_cmpy_Top Top1;
	protected Repeater Repeater_new_10;
	protected Repeater Repeater_new_11;
	protected Repeater Repeater_new_12;
	protected UserControls_index_ctrl2 ctrlgoods_10;
	protected UserControls_index_ctrl2 ctrlgoods_11;
	protected UserControls_index_ctrl2 ctrlgoods_12;
	protected UserControls_index_ctrl2 ctrlgoods_13;
	protected UserControls_index_ctrl12 ctrl1_10;
	protected UserControls_index_ctrl12 ctrl1_11;
	protected UserControls_index_ctrl12 ctrl1_12;
	protected UserControls_index_ctrl12 ctrl1_13;
	protected UserControls_index_ctrl3 ctrl_1b;
	protected UserControls_index_ctrl3 ctrl_1cb;
	protected UserControls_index_ctrl1 ctrl2_10;
	protected UserControls_index_ctrl1 ctrl2_11;
	protected UserControls_index_ctrl1 ctrl2_12;
	protected UserControls_index_ctrl1 ctrl2_13;
	protected UserControls_index_ctrl3 ctrl_2b;
	protected UserControls_index_ctrl3 ctrl_2cb;
	protected UserControls_index_ctrl1 ctrl3_10;
	protected UserControls_index_ctrl1 ctrl3_11;
	protected UserControls_index_ctrl1 ctrl3_12;
	protected UserControls_index_ctrl1 ctrl3_13;
	protected UserControls_index_ctrl3 ctrl_3b;
	protected UserControls_index_ctrl3 ctrl_3cb;
	protected UserControls_index_ctrl1 ctrl4_10;
	protected UserControls_index_ctrl1 ctrl4_11;
	protected UserControls_index_ctrl1 ctrl4_12;
	protected UserControls_index_ctrl1 ctrl4_13;
	protected UserControls_index_ctrl3 ctrl_4b;
	protected UserControls_index_ctrl3 ctrl_4cb;
	protected UserControls_index_ctrl1 ctrl5_10;
	protected UserControls_index_ctrl1 ctrl5_11;
	protected UserControls_index_ctrl1 ctrl5_12;
	protected UserControls_index_ctrl1 ctrl5_13;
	protected UserControls_index_ctrl3 ctrl_5b;
	protected UserControls_index_ctrl3 ctrl_5cb;
	protected UserControls_index_ctrl1 ctr6_10;
	protected UserControls_index_ctrl1 ctr6_11;
	protected UserControls_index_ctrl1 ctr6_12;
	protected UserControls_index_ctrl1 ctr6_13;
	protected UserControls_index_ctrl3 ctrl_6b;
	protected UserControls_index_ctrl3 ctrl_6cb;
	protected UserControls_CMYP_Foot Foot1;
	protected HtmlForm form1;
	private static Conn conn = new Conn();
	private Shop_Class sc = Shop_Class.instance;
	private static WebService ws = WebService.instance;
	private static CM_ProductsBll bllProduct = CM_ProductsBll.instance;
	private static Shop_Article bllArticle = Shop_Article.instance;
	private string imgNoPath = "Skin/CommStyle/images/noneimg.jpg";
	protected DefaultProfile Profile
	{
		get
		{
			return (DefaultProfile)this.Context.Profile;
		}
	}
	protected global_asax ApplicationInstance
	{
		get
		{
			return (global_asax)this.Context.ApplicationInstance;
		}
	}
	protected string keywords
	{
		get
		{
			return StaticFunApp.SiteConfig["MetaKeywords"].IsNull(new object[0]);
		}
	}
	protected string description
	{
		get
		{
			return StaticFunApp.SiteConfig["MetaDescription"].IsNull(new object[0]);
		}
	}
	protected void Page_Load(object sender, EventArgs e)
	{
		if (!base.IsPostBack)
		{
			this.Page.Title = StaticFunApp.SiteConfig["SiteName"].IsNull(new object[0]);
			this.bindData();
		}
	}
	private void bindData()
	{
		DataTable announceList = AnnounceBll.instance.GetAnnounceList(new int[]
		{
			6
		});
		this.Repeater_new_10.DataSource = announceList;
		this.Repeater_new_10.DataBind();
		DataTable articleByModuleID = index.bllArticle.GetArticleByModuleID2(19, 6);
		this.Repeater_new_11.DataSource = articleByModuleID;
		this.Repeater_new_11.DataBind();
		articleByModuleID.Dispose();
		DataTable articleByModuleID2 = index.bllArticle.GetArticleByModuleID2(20, 6);
		this.Repeater_new_12.DataSource = articleByModuleID2;
		this.Repeater_new_12.DataBind();
		articleByModuleID2.Dispose();
	}
	public string GetPruductImg(object obj)
	{
		string text = obj.IsNull(new object[0]);
		string result;
		if (text != "")
		{
			if (!File.Exists(base.Server.MapPath(text)))
			{
				result = this.imgNoPath;
			}
			else
			{
				result = obj.ToString();
			}
		}
		else
		{
			result = this.imgNoPath;
		}
		return result;
	}
	public string GetPruductName(object obj)
	{
		string result;
		if (obj.ToString().Length > 5)
		{
			result = obj.ToString().Substring(0, 5) + "..";
		}
		else
		{
			result = obj.ToString();
		}
		return result;
	}
	public string GetShortString(object obj, int n, params string[] EndString)
	{
		return obj.GetShortString(n, EndString);
	}
	protected string GetDisplay(object rowid)
	{
		return (rowid.IsNull(new object[0]) == "0") ? "" : " style=\"display:none;\"";
	}
	protected string GetClassName(object rowid)
	{
		return (rowid.IsNull(new object[0]) == "0") ? "on pointer" : "pointer";
	}
}
